-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: blinking placeholder avatar on profile screen [WPB-3917] #2184
fix: blinking placeholder avatar on profile screen [WPB-3917] #2184
Conversation
APKs built during tests are available here. Scroll down to Artifacts! |
Build 602 succeeded. The build produced the following APK's: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👨🏼🍳🤌🏻
Should we merge it into RC ? |
@ohassine do we currently have any restrictions on what fixes should be added to RC? 🤔 |
…kering_avatar_on_profile_screen
AFAIK, only flagged issues should go into RC |
APKs built during tests are available here. Scroll down to Artifacts! |
Currently we have only one flagged bug in our whole backlog so I don't think this rule applies. We were not supposed to merge any new features. 🤔 |
Build 629 succeeded. The build produced the following APK's: |
…kering_avatar_on_profile_screen
APKs built during tests are available here. Scroll down to Artifacts! |
Build 645 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
When opening any profile screen, a placeholder image appears for a short amount of time before the proper avatar is loaded, even if the image is already cached.
Solutions
Provide a small delay of 200ms before showing the placeholder when loading proper avatar which is enough to fetch data from database and get the cached image, so it doesn't need to show the placeholder, only when the image is not already cached and needs to be downloaded, but even then it looks better together with the crossfade animation and new transition animations between screens.
Testing
How to Test
Open any profile screen.
Attachments (Optional)
These before/after videos are recorded with disabled transition animations to better see how exactly it looks.
avatars_before.mp4
profile_avatars_after.mp4
profile_avatars_after_with_transitions.mp4
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.